<?php
namespace app\admin\controller\finance;
use app\admin\controller\Controller;
use app\common\library\wechat\Abonus;
use app\common\model\divide\System as SystemModel;

/**
 * 系统分红记录
 * Class System
 * @package app\admin\controller\abonus
 */
class System extends Controller
{

    /**
     * @return string
     */
    public function index()
    {
        $model = new SystemModel();
        return $this->fetch('index', [
            // 充值记录列表
            'list' => $list = $model->getIncomeList($this->request->param()),
        ]);
    }


    //月汇总
    public function  gather(){

        $model = new SystemModel();
        return $this->fetch('index', [
            // 充值记录列表
            'list' => $list = $model->getGather(),
        ]);
    }

}